package primetest.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DepartmentDto {
	private int seq;
	private String name;
	private String description;
	private Date buildDate;
	private boolean online;
	//You must declared default constructor for Framework.
	public DepartmentDto(){
		super();
		setOnline(true);
	}

	public DepartmentDto(int seq, String name, String description, Date buildDate) {
		this.seq = seq;
		this.name = name;
		this.description = description;
		this.buildDate = buildDate;
		setOnline(true);
	}

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getBuildDate() {
		return buildDate;
	}

	public void setBuildDate(Date buildDate) {
		this.buildDate = buildDate;
	}

	public void setAll(DepartmentDto dto) {
		this.seq = dto.seq;
		this.name = dto.name;
		this.description = dto.description;
		this.buildDate = dto.buildDate;

	}

	public boolean isValid() {
		return true;
	}

	public boolean isOnline() {
		return online;
	}

	public void setOnline(boolean online) {
		this.online = online;
	}


}
